package com.xxx.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("`role_menu`")
public class RoleMenu {
    //过长前端接收long类型会丢失精度  所以要转成string
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long roleId;
    //过长前端接收long类型会丢失精度  所以要转成string
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long menuId;
    private Integer status;
    @TableField("`delete`")
    @TableLogic // 标记为逻辑删除字段
    private Integer delete;
}
